<template>
  <section id="hero">
    <!-- <h1 class="tagline">
      <span class="accent">Electron-Egg</span>
    </h1>
    <p class="description">A fast, desktop software development framework</p> -->

    <p class="description" @click="getjump(1)">第一个界面</p>
    <!-- <p class="description" @click="getjump(2)">第二个界面</p>
    <p class="description" @click="getjump(3)">第三个界面</p> -->
    <!-- <p class="actions">
      <a class="setup" href="https://www.kaka996.com/" target="_blank"
        >Get Started</a
      >
    </p> -->
    <div class="form">
      <h2 class="form_title title">欢迎登录跟瞄系统</h2>
      <div class="form__icons">
        <img class="form__icon" src=" " />
        <img class="form__icon" src=" " />
        <img class="form__icon" src=" " />
      </div>
      <!-- <span class="form__span">或者使用Token登录</span> -->
      <input class="form__input" type="text" placeholder="用户名" />
      <input class="form__input" type="password" placeholder="密码" />
      <input
        v-if="loginModel === 'token'"
        class="form__input"
        type="password"
        placeholder="Token"
      />
      <div class="login-info">
        <!-- <a class="form__link" @click="forgetPassword">忘记密码了？</a> -->
        &nbsp;&nbsp;&nbsp;&nbsp;
      </div>
      <button class="form__button button submit" @click="login()">
        登&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;录
      </button>
    </div>
  </section>
</template>
<script>
export default {
  data() {
    return {};
  },
  created() {
    // this.$router.push("/homelogin");
  },

  methods: {
    getjump(pos) {
      if (pos == 1) {
        this.$router.push("/kjzj");
      } else if (pos == 2) {
        this.$router.push("/homenew");
      } else if (pos == 3) {
        this.$router.push("/homelogin");
      }
      console.log("hello");
    },
    login() {
      this.$router.push("/kjzj");
    },
  },
};
</script>
<style scoped>
section {
  padding: 42px 32px;
}

#hero {
  padding: 150px 32px;
  text-align: center;
  height: 100%;
}

.tagline {
  font-size: 52px;
  line-height: 1.25;
  font-weight: bold;
  letter-spacing: -1.5px;
  max-width: 960px;
  margin: 0px auto;
}

html:not(.dark) .accent,
.dark .tagline {
  background: -webkit-linear-gradient(315deg, #42d392 25%, #647eff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  max-width: 960px;
  line-height: 1.5;
  color: var(--vt-c-text-2);
  transition: color 0.5s;
  font-size: 22px;
  margin: 24px auto 40px;
}

.actions a {
  font-size: 16px;
  display: inline-block;
  background-color: var(--vt-c-bg-mute);
  padding: 8px 18px;
  font-weight: 500;
  border-radius: 8px;
  transition:
    background-color 0.5s,
    color 0.5s;
  text-decoration: none;
}

.actions .setup {
  color: var(--vt-c-text-code);
  background: -webkit-linear-gradient(315deg, #42d392 25%, #647eff);
}

.actions .setup:hover {
  background-color: var(--vt-c-gray-light-4);
  transition-duration: 0.2s;
}
</style>
